﻿using ReferenceTemplate.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Xaml.Data;

namespace ReferenceTemplate.Windows8.Converter
{
    class LoadURL : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            string url = (string)value;
            //try
            //{
            //    string url = (string)value;
            //    MainViewModel viewModel = (MainViewModel)parameter;

            //    if (viewModel.SelectedLink.URL.Equals(url))
            //    {
            //        return url;
            //    }
            //}
            //catch
            //{

            //}


            return url;
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }
}
